package com.sh.data.engine.application.model.dto.normalization.modeldesign;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author : changkong
 * @date : 2022/1/6
 */
@Data
@Builder
@Schema(description = "模型获取存储类型")
@NoArgsConstructor
@AllArgsConstructor
public class StorageResponse {

    @Schema(title = "存储类型", description = "目前只有PostgreSQL Hive")
    private String type;

    @Schema(description = "存储类型对应的可选字段")
    private List<FieldType> fieldTypes;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class FieldType {
        @Schema(title = "字段名称", description = "下拉框展示")
        private String name;

        @Schema(title = "字段类型", description = "接口传参用这个")
        private String value;
    }
}
